Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Run php parallel lint if it's installed #30

Merged

Conversation

GuySartorelli
Copy link
Member

action.yml Outdated
@@ -238,6 +238,10 @@ runs:
if: ${{ inputs.phplinting == 'true' }}
shell: bash
run: |
if [[ -f vendor/bin/parallel-lint ]]; then
echo "Running parallel-lint"
vendor/bin/parallel-lint --exclude=vendor --exclude=.git .
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excluding .git is just for speed - means it doesn't have to look at all the files in there checking for php files that aren't there.

action.yml Outdated
@@ -238,6 +238,10 @@ runs:
if: ${{ inputs.phplinting == 'true' }}
shell: bash
run: |
if [[ -f vendor/bin/parallel-lint ]]; then
echo "Running parallel-lint"
vendor/bin/parallel-lint --exclude=vendor --exclude=.git .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
vendor/bin/parallel-lint --exclude=vendor --exclude=.git .
vendor/bin/parallel-lint --exclude vendor --exclude .git .

I tested this locally and it seems that you do not include the equals sign

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, well. That's silly of it lol.
Done.

@emteknetnz emteknetnz merged commit 5895397 into silverstripe:1.1 Jul 2, 2024
4 checks passed
@emteknetnz emteknetnz deleted the pulls/1.1/run-parallel-lint branch July 2, 2024 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants